<nb-card>
  <nb-card-header>二维码获取</nb-card-header>
  <nb-card-body>
    <div class="row">
      <div class="input-group col-lg-12">
        <input type="text" class="form-control" [(ngModel)]="batch" name="batch" placeholder="输入批次号">
        <span class="input-group-append">
            <button class="btn btn-primary input-group-text" (click)="submit()">
              获取二维码
            </button>
          </span>
      </div>
    </div>
    <div class="row">
      <div class="qrcode-container">
        <ngx-qrcode
          *ngIf="batch" [qrc-value]="value" [qrc-version]=5 qrc-class="img-thumbnail"
        >
        </ngx-qrcode>
        <p *ngIf="!batch">- 等待二维码显示 -</p>
      </div>
    </div>

  </nb-card-body>
  <nb-card-footer>若扫码结果不相对应请联系管理员</nb-card-footer>
</nb-card>
